package ru.gerunn.silent.server;

import ru.gerunn.silent.common.ConsoleReader;
import ru.gerunn.silent.common.ConsoleWriter;
import ru.gerunn.silent.common.Reader;
import ru.gerunn.silent.common.Writer;
import ru.gerunn.silent.message.Message;

public class ServerSession implements Runnable {

	public void run() {
		Reader reader = new ConsoleReader();
		Writer writer = new ConsoleWriter();
		Message message = null;
		while ((message = reader.read()) != null) {
			writer.write(message);
		}
	}

}
